#! /bin/bash

# test for loop
echo "test for loop"  
for var in 1 2 3 4 5
do
	echo "The value is : $var"
done

# test while loop
echo "test while loop"
int=1
while (( $int<=5 ))
do
	echo "int = $int"
	let "int++"
done 

# test until loop
echo "test until loop"
var=0

until [ ! $var -lt 5 ]
do
	echo "var = $var"
	var=`expr $var + 1`
done
